package user_v1

import (
	"context"
	"gf-xb-api/internal/dao"
	"gf-xb-api/internal/model/entity"
)

func (s *sUser) GetOne(ctx context.Context, id uint) (output *entity.SysUser, err error) {

	err = dao.SysUser.Ctx(ctx).Where(dao.SysUser.Columns().Id, id).Scan(&output)
	if err != nil {
		return nil, err
	}

	return
}
